package com.sn.author.common.enums;

import lombok.Getter;

/**
 * @Author Xiaoming
 * @Date 2019/9/11 15:07
 * @Version 1.0.0
 **/
@Getter
public enum ExceptionEnum {

    SUCCESS(10000,"OK","成功"),
    UNKNOWN_ERR(10001,"Service exception","服务器系统错误"),
    PARAMS_DECRYPT_ERR(10008,"Parameter decryption failed","参数解密失败"),
    ENCODE_ERR(10009,"","参数加密失败"),
    PARAMS_MISS_ERR(10011,"Params missing.","参数缺失"),
    LOGIN_INVALID_ERR(10012,"","登录失败"),
    PERMISSION_ERR(10013,"","权限异常"),
    REQUEST_PARAMS_ERR(10014,"Required parameters of the request header","请求头缺失必备参数");

    private Integer code;

    private String message;

    private String CNMessage;

    ExceptionEnum(Integer code, String message, String CNMessage) {
        this.code = code;
        this.message = message;
        this.CNMessage = CNMessage;
    }
}
